<h1>{$lang['editAccount']}</h1>
<form action="{$smarty.const.WEBROOT}/?action=updateAccount" method="POST"
	id="accountEditForm">
	<input type="hidden" id="account" name="account"
		value="{$account->getId()}" />
		<h2>{$lang['username']} {$account->getName()}</h2>
		<input type="hidden" name="name" id="name" value=" {$account->getName()}"/>
	<table style="padding-left:9px">
		<tr>
			<td width="131px">{$lang['givenName']}</td>
			<td>{$account->getGivenname()}</td>
		</tr>
		<tr>
			<td valign="top">{$lang['email']}</td>
			<td><input type="text" class="feedbackInput inputHeight inputWidth" id="email" name="email" value="{$account->getEmail()}"></td>
		</tr>
		<tr>
			<td valign="top">{$lang['phone']}</td>
			<td><input type="text" class="feedbackInput inputHeight inputWidth" id="phone" name="phone" value="{$account->getPhone()}"></td>
		</tr>
		<tr>
			<td width="131px">{$lang['password']}*</td>
			<td>
			<input type="password" class="feedbackInput inputHeight inputWidth" id="password" name="password"></td>
		</tr>
		<tr>
			<td width="131px">{$lang['n_password']}</td>
			<td><input type="password" class="feedbackInput inputHeight inputWidth" id="newpassword" name="newpassword"></td>
		</tr>
		<tr>
			<td width="131px">{$lang['r_password']}</td>
			<td><input type="password" class="feedbackInput inputHeight inputWidth" id="renewpassword" name="renewpassword"></td>
		</tr>
		{if $account->getType() eq 1}
		<tr>
			<td width="131px">{$lang['type']}</td>
			<td>
			<select class="feedbackInput inputWidth" id="type" name="type" >
			<option value="1" {if $account->getType() eq "1"}selected="selected"{/if}>{$lang['accountType_1']}</option>
			<option value="0" {if $account->getType() eq "0"}selected="selected"{/if}>{$lang['accountType_0']}</option>
			</select>
		</tr>
		{/if}
		<tr><td colspan="2"><input type="checkbox" name="notify" id="notify" value="1" {if $account->getNotification() gt 0} checked="checked" {/if}> {$lang['feedbackNotify']}</td></tr>
	</table>
	<div class="clearfix"></div>
	<br>
	<p class="readmore">
		<a href="#" onclick="saveAccountDetails()">{$lang['doneBtn']}</a> »
	</p>
</form>
